package com.mudouyu.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.mudouyu.dubbo.service.ArticleService;
import org.springframework.stereotype.Component;

import java.util.concurrent.TimeUnit;

/**
 * ${DESCRIPTION}
 *
 * @author yangcb
 * @email mudouyu@aliyun.com
 * @create 2018-02-08 14:51
 **/
@Component
@Service(token = "true")
public class ArticleServiceImpl implements ArticleService {
    @Override
    public String sayHello() {

//        try {
//            TimeUnit.MILLISECONDS.sleep(50000);
//        } catch (InterruptedException e) {
//            // TODO Auto-generated catch block
//            e.printStackTrace();
//        }

        return "I can say HELLO!";
    }
}
